package day12.lx;

import java.io.UnsupportedEncodingException;
import java.util.Arrays;

public class Lian01 {
    public static void main(String[] args) throws UnsupportedEncodingException {
//        method1();
        byte[]bytes1={-26, -120, -111, -26, -104, -81, -24, -80, -127};
        byte[]bytes2={-50, -46, -54, -57, -53, -83};
        String s1=new String(bytes1);
        System.out.println(s1);
        String s2=new String(bytes2,"gbk");
        System.out.println(s2);
    }

    private static void method1() throws UnsupportedEncodingException {
        String s="我是谁";
        byte[]bytes=s.getBytes();
        System.out.println(Arrays.toString(bytes));
        byte[]bytes1=s.getBytes("GBK");
        System.out.println(Arrays.toString(bytes1));
    }
}
